package sjg.practice.WBtest;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class AddTrainingPlanForm extends JFrame {

	
	private JPanel contentPane;
	public static JTextField textField;
	public static JTextField textField_1;
	public static JTextField textField_2;
	public static JTextField textField_3;
	public static JTextField textField_4;
	public static JTextField textField_5;
	public static JTextField textField_6;
	public static JTextField textField_7;
	public static JTextField textField_8;
	public static JTextField textField_9;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					AddTrainingPlanForm frame = new AddTrainingPlanForm();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public AddTrainingPlanForm() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBounds(35, 35, 371, 57);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("\u5E74\u5EA6");
		lblNewLabel.setBounds(10, 10, 54, 15);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("\u5F00\u59CB\u65F6\u95F4");
		lblNewLabel_1.setBounds(10, 35, 54, 15);
		panel.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("\u540D\u79F0");
		lblNewLabel_2.setBounds(205, 10, 54, 15);
		panel.add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("\u7ED3\u675F\u65F6\u95F4");
		lblNewLabel_3.setBounds(205, 35, 54, 15);
		panel.add(lblNewLabel_3);
		
		textField = new JTextField();
		textField.setBounds(67, 7, 66, 21);
		panel.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(67, 35, 66, 21);
		panel.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(265, 7, 66, 21);
		panel.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(265, 32, 66, 21);
		panel.add(textField_3);
		textField_3.setColumns(10);
		
		JButton button = new JButton("\u4FDD\u5B58");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new DBUtil1().save();
			}
		});
		button.setBounds(314, 10, 93, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("\u5220\u9664");
		button_1.setBounds(313, 116, 93, 23);
		contentPane.add(button_1);
		
		JButton button_2 = new JButton("\u589E\u52A0");
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new DBUtil1().link();
				
			}
		});
		button_2.setBounds(212, 116, 93, 23);
		contentPane.add(button_2);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBounds(35, 141, 371, 100);
		contentPane.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNewLabel_4 = new JLabel("\u540D\u5B57");
		lblNewLabel_4.setBounds(10, 10, 54, 15);
		panel_1.add(lblNewLabel_4);
		
		JLabel lblNewLabel_5 = new JLabel("\u57F9\u8BAD\u76EE\u7684");
		lblNewLabel_5.setBounds(115, 10, 54, 15);
		panel_1.add(lblNewLabel_5);
		
		JLabel lblNewLabel_6 = new JLabel("\u57F9\u8BAD\u5185\u5BB9");
		lblNewLabel_6.setBounds(179, 10, 54, 15);
		panel_1.add(lblNewLabel_6);
		
		JLabel lblNewLabel_7 = new JLabel("\u8BFE\u65F6");
		lblNewLabel_7.setBounds(243, 10, 54, 15);
		panel_1.add(lblNewLabel_7);
		
		JLabel lblNewLabel_8 = new JLabel("\u6388\u8BFE\u4EBA");
		lblNewLabel_8.setBounds(307, 10, 54, 15);
		panel_1.add(lblNewLabel_8);
		
		JLabel lblNewLabel_9 = new JLabel("ID");
		lblNewLabel_9.setBounds(55, 10, 54, 15);
		panel_1.add(lblNewLabel_9);
		
		textField_4 = new JTextField();
		textField_4.setBounds(10, 35, 26, 55);
		panel_1.add(textField_4);
		textField_4.setColumns(10);
		
		textField_5 = new JTextField();
		textField_5.setBounds(50, 35, 26, 55);
		panel_1.add(textField_5);
		textField_5.setColumns(10);
		
		textField_6 = new JTextField();
		textField_6.setBounds(115, 35, 54, 55);
		panel_1.add(textField_6);
		textField_6.setColumns(10);
		
		textField_7 = new JTextField();
		textField_7.setBounds(179, 35, 54, 55);
		panel_1.add(textField_7);
		textField_7.setColumns(10);
		
		textField_8 = new JTextField();
		textField_8.setBounds(242, 35, 26, 55);
		panel_1.add(textField_8);
		textField_8.setColumns(10);
		
		textField_9 = new JTextField();
		textField_9.setBounds(295, 35, 54, 55);
		panel_1.add(textField_9);
		textField_9.setColumns(10);
	}
}
